package br.usp.ime.dojo.core.entities;

public class User {

	private String name;

	public User(String name) {
		setName(name);
	}

	public void setName(String user) {
		this.name = user;
	}

	public String getName() {
		return name;
	}
	
	public int hashCode() {
		return name.hashCode();
	}
	
	public boolean equals(Object o) {
		if (!(o instanceof User)) return false;
		User user = (User)o;
		return getName().equals(user.getName());
	}
}
